package net.helix.ui.panels;

import java.awt.GraphicsDevice;

import org.lwjgl.opengl.Drawable;
import org.lwjgl.opengl.PixelFormat;
import org.newdawn.slick.AppGameContainer;

public class SharedGLCanvas{
	public PixelFormat pf;
	public GraphicsDevice gd;
	public Drawable sd;
	/**
	 * Call at the beginning of the engine being created to set the values that new
	 * AWTGLCanvases take as parameters.
	 */
	public SharedGLCanvas(){
		try{
			//gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
			gd = null;
			
			pf = new PixelFormat();
			
			
			//sd = Display.getDrawable();
			
			sd = AppGameContainer.getSharedContext();
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void setDrawable(Drawable d){
		//if(sd == null){
		//	sd = d;
		//}
	}
}